]> dgit.raspbian.org Git - gnome-shell.git/commit
mixer-control: Reset `stream-id`s on UI devices
authorGuido Günther <agx@sigxcpu.org>
Sun, 4 Jan 2026 12:07:31 +0000 (13:07 +0100)
committerSimon McVittie <smcv@debian.org>
Wed, 28 Jan 2026 13:25:18 +0000 (13:25 +0000)
commit62faf199403ca701b3aa0d294ea7846712fe33df
treee2348153174ee0acdda68a5e090e8ae160d99f91
parentafdd457ca2ef39a7e49963e8016aca09d85a3de8
mixer-control: Reset `stream-id`s on UI devices

If we find a matching UI device for a stream matching card and
port and the same stream is also on another port, reset that
UI devices `stream-id`.

Since wireplumber 1.5.84 will merely flip the port but not the
`stream-id` we need to make sure the UI device loses its stream-id.
Otherwise `gvc_mixer_control_change_output` will try a
`gvc_mixer_stream_change_port` which seemingly succeeds but fails
silently as the port doesn't exist on that stream at the moment.

By resetting the `stream-id` we ensure that we take the
`gvc_mixer_control_change_profile_on_selected_device` code path in
`gvc_mixer_control_change_output` instead and thus the sink/port
gets properly selected.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
Origin: https://gitlab.gnome.org/GNOME/libgnome-volume-control/-/merge_requests/31
Bug: https://gitlab.gnome.org/GNOME/libgnome-volume-control/-/issues/34
Bug-Debian: https://bugs.debian.org/1126514
Applied-upstream: gnome-shell 50, commit:798230599950607ec285daecd070f5bcb28580e4

Gbp-Pq: Topic libgvc
Gbp-Pq: Name mixer-control-Reset-stream-id-s-on-UI-devices.patch
subprojects/gvc/gvc-mixer-control.c